package my.code.charpter3.part4;

public class TagCharItem {
	private char c;
	private int value;
	private boolean leading;
	
	public TagCharItem(char c, int value, boolean leading) {
		this.c = c;
		this.value = value;
		this.leading = leading;
	}

	public char getC() {
		return c;
	}

	public void setC(char c) {
		this.c = c;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public boolean isLeading() {
		return leading;
	}

	public void setLeading(boolean leading) {
		this.leading = leading;
	}
	
	@Override
	public String toString() {
		return String.format("[%c,%d]", c, value);
	}
}
